<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>以数组形式返回打开的算法所支持的密钥大小</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.mcrypt-module-get-supported-key-sizes" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mcrypt_module_get_supported_key_sizes</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5, PHP 7 &lt; 7.2.0, PECL mcrypt &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">mcrypt_module_get_supported_key_sizes</span> &mdash; <span class="dc-title">以数组形式返回打开的算法所支持的密钥大小</span></p>

 </div>
 <div id="function.mcrypt-module-get-supported-key-sizes-refsynopsisdiv">
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function has been
<em class="emphasis">DEPRECATED</em> as of PHP 7.1.0. Relying on this function
is highly discouraged.</p></div>
 </div>
 <div class="refsect1 description" id="refsect1-function.mcrypt-module-get-supported-key-sizes-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mcrypt_module_get_supported_key_sizes</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$algorithm</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$lib_dir</code></span>
  ] ) : <span class="type">array</span></div>

  <p class="para rdfs-comment">
   以数组形式返回指定算法所支持的密钥大小。
   如果从 1 到 <span class="function"><a href="mcrypt_module_get_algo_key_size.html" class="function">mcrypt_module_get_algo_key_size()</a></span> 
   的密钥大小都支持，则返回空数组。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.mcrypt-module-get-supported-key-sizes-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">algorithm</code></dt>

     <dd>

      <p class="para">
       算法名称。
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">lib_dir</code></dt>

     <dd>

      <p class="para">
       可选参数，
       表示在操作系统上包含算法模块的路径。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mcrypt-module-get-supported-key-sizes-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   以数组形式返回指定算法所支持的密钥大小。
   如果从 1 到 <span class="function"><a href="mcrypt_module_get_algo_key_size.html" class="function">mcrypt_module_get_algo_key_size()</a></span> 
   的密钥大小都支持，则返回空数组。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mcrypt-module-get-supported-key-sizes-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="mcrypt_enc_get_supported_key_sizes.html" class="function" rel="rdfs-seeAlso">mcrypt_enc_get_supported_key_sizes()</a> - 以数组方式返回打开的算法所支持的密钥长度</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>